package yt.kpool.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.king.base.adapter.ViewHolderAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

import yt.kpool.MainActivity;
import yt.kpool.R;
import yt.kpool.bean.ChildAccountBean;
import yt.kpool.util.Util;


/**
 * 设置中挖矿账户列表适配器
 * Created by Administrator on 2017/7/17.
 */

public class AccountListviewAdapter extends ViewHolderAdapter<ChildAccountBean.DataBean> {



    private List<ChildAccountBean.DataBean> listData;


    public AccountListviewAdapter(Context context, List<ChildAccountBean.DataBean> listData) {
        super(context, listData);
        this.listData=listData;
    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, ChildAccountBean.DataBean dataBean, int position) {
        return layoutInflater.inflate(R.layout.item_account_list_layout,null);
    }

    @Override
    public void bindViewDatas(ViewHolder holder, ChildAccountBean.DataBean dataBean, int position) {
               holder.setText(R.id.tv_name,dataBean.getChildAccountName());
               holder.setText(R.id.tv_num, "备注： "+dataBean.getChildAccountRemark());

    }



}
